﻿using Microsoft.SharePoint;

namespace SPQueryToSql.ApplicationObjects.CAML
{
    internal class UserID
    {
        public int UserId;
        public string UserName;

        public UserID()
        {
            var ctx = SPContext.Current;
            var user = ctx.Web.CurrentUser;
            UserId = user.ID;
            UserName = user.Name;
        }
    }
}
